/* ===================================
   头部和页脚样式
   =================================== */

/* ============ 头部样式 ============ */

.app-header {
  background: transparent;
  color: #2c3e50;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: auto;
  margin: 0 auto;
  max-width: calc(100% - 700px);
  z-index: 100;
}

.header-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #2c3e50;
}

.app-logo {
  height: 40px;
  width: auto;
  margin-right: 15px;
  border-radius: 8px;
}

.app-name {
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.open-source-notice {
  font-weight: bold;
  color: #e53e3e;
  padding: 5px 12px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 20px;
  font-size: 0.9em;
}

.tutorial-link, .github-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background-color: rgba(0,0,0,0.05);
  border-radius: 20px;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tutorial-link:hover, .github-link:hover {
  background-color: rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.github-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* 赞助按钮样式 */
.donate-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background-color: rgba(255, 105, 180, 0.15);
  border-radius: 20px;
  color: #e91e63;
  text-decoration: none;
  transition: all 0.3s ease;
}

.donate-link:hover {
  background-color: rgba(255, 105, 180, 0.25);
  transform: translateY(-2px);
}

.donate-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

/* 返回书架按钮样式 */
.back-to-shelf {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: white;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-to-shelf:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 保存按钮样式（顶部） */
.save-header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.save-header-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.save-header-btn:active {
  transform: translateY(0);
}

/* ============ 页脚样式 ============ */

.app-footer {
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-info p {
  margin: 5px 0;
}

.footer-links {
  font-size: 0.9em;
}

.footer-links a {
  color: #7fdbff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-notice {
  margin-top: 10px;
  font-weight: bold;
  color: #ffd700;
  padding: 8px 15px;
  background-color: rgba(0,0,0,0.2);
  border-radius: 20px;
  font-size: 0.9em;
}
